package Exercises;

import java.util.Scanner;

public class Task12 {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner (System.in);
		
		while(true)
		{
		System.out.println("Please enter 3 numbers!");
		
      int first = sc.nextInt();
      int second = sc.nextInt();
      int third = sc.nextInt();
      	if (first + second + third == 0 ){
      		System.out.println("Hasta la vista!");break;
      	}
      	if((first + second + third )%3==0)
      	{
      		System.out.println("Yes");
      	}else {
      		System.out.println("No");
      	}
      
      
		}
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	}}